hi all,
I've a problem working with structs.
So, I've some struct with few objects. And I gotta renew only one object when another objects will be constant while issues application in the working process. This struct to fill from getopt.
For example me need parse cli like this..
./prg -i 100a-150a -v 00:07:F6:6E:53:E9
Where '100a-150a' it's id. It would be like this in object id 100a, 101a,...,150a, when value wold be constant with either id.
I might parse like this cliCode:struct my { char *id; char value;
./prg -i 100a -v 00:07:F6:6E:53:E9
But I'm embarrassed to do it with interval of value.

